package exo1;

/**
 * Created with IntelliJ IDEA.
 * User: naberrad
 * Date: 14/10/13
 * Time: 14:20
 * To change this template use File | Settings | File Templates.
 */
public class Square extends Rectangle {

    public Square(double length, double width) throws Exception {
        super(length, width);
        if(length!=width){
            throw new IllegalArgumentException("La longueur doit etre egale a la largeur !");
        }
    }
}
